{% comment %}1 首页{% endcomment %}
{% if template == 'index' %}
    <!-- Open Graph -->
    {% if seo.meta_title %}
        <meta property="og:title" content="{{ seo.meta_title | escape }}"/>
    {% else %}
        <meta property="og:title" content="{{ storeInfo.shop_name }}"/>
    {% endif %}
    {% if seo.meta_descript %}
        <meta property="og:description" content="{{ seo.meta_descript | escape }}"/>
    {% else %}
        <meta property="og:description" content="{{ storeInfo.shop_name }}"/>
    {% endif %}
    <meta property="og:type" content="website"/>
    <meta property="og:url" content="https://{{ current_domain }}?utm_source=sns_share&utm_medium=open_graph"/>
    <meta property="og:image" content="{{ theme_config.global.sns_link_default_image.src|public_front_asset_url }}"/>
    <meta property="og:site_name" content="{{ storeInfo.shop_name }}"/>

    <meta name="twitter:site" content="https://{{ current_domain }}">
    <meta name="twitter:card" content="summary_large_image">
    {% if seo.meta_title %}
        <meta name="twitter:title" content="{{ seo.meta_title | escape }}">
    {% else %}
        <meta name="twitter:title" content="{{ storeInfo.shop_name }}">
    {% endif %}
    {% if seo.meta_descript %}
        <meta name="twitter:description" content="{{ seo.meta_descript | escape }}">
    {% else %}
        <meta name="twitter:description" content="{{ storeInfo.shop_name }}">
    {% endif %}
    <meta property="twitter:image" content="{{ theme_config.global.sns_link_default_image.src|public_front_asset_url }}"/>
    <!-- Open Graph End -->
    {% comment %}2 商品详情页{% endcomment %}
{% elsif template == 'product_detail' %}
    <!-- Open Graph -->
    {% if product.meta_title %}
        <meta property="og:title" content="{{ product.meta_title | escape }}"/>
    {% else %}
        <meta property="og:title" content="{{ product.title }} - {{ storeInfo.shop_name }}"/>
    {% endif %}
    {% if product.meta_descript %}
        <meta property="og:description" content="{{ product.meta_descript | escape }}"/>
    {% else %}
        <meta property="og:description" content="{{ product.title }}"/>
    {% endif %}
    <meta property="og:type" content="product"/>
    <meta property="og:url" content="{{ routes.current_url }}?utm_source=sns_share&utm_medium=open_graph"/>
    <meta property="og:image" content="{{ product.src| default:theme_config.global.sns_link_default_image.src|public_front_asset_url }}"/>
    <meta property="og:site_name" content="{{ storeInfo.shop_name }}"/>
    <meta property="og:price:amount" content="{{ product.variant.price }}"/>
    <meta property="og:price:currency" content="{{ storeConfig.currency_default }}"/>
    {% comment %}stock判断{% endcomment %}
    <meta property="og:availability" content="instock"/>
    <meta name="twitter:site" content="https://{{ current_domain }}">
    <meta name="twitter:card" content="summary_large_image">
    {% if product.meta_title %}
        <meta name="twitter:title" content="{{ product.meta_title | escape }}">
    {% else %}
        <meta name="twitter:title" content="{{ product.title }} - {{ storeInfo.shop_name }}">
    {% endif %}
    {% if product.meta_descript %}
        <meta name="twitter:description" content="{{ product.meta_descript | escape }}">
    {% else %}
        <meta name="twitter:description" content="{{ product.title }}">
    {% endif %}
    <meta name="twitter:image" content="{{ product.src| default:theme_config.global.sns_link_default_image.src|public_front_asset_url }}"/>
    <!-- Open Graph End -->
    {% comment %}3 博客页{% endcomment %}
{% elsif template == 'blog_detail' %}
    <!-- Open Graph -->
    {% if blog.meta_title %}
        <meta property="og:title" content="{{ blog.meta_title | escape }}"/>
    {% else %}
        <meta property="og:title" content="{{ blog.title }} - {{ storeInfo.shop_name }}"/>
    {% endif %}
    {% if blog.meta_descript %}
        <meta property="og:description" content="{{ blog.meta_descript | escape }}"/>
    {% else %}
        <meta property="og:description" content="{{ blog.title }}"/>
    {% endif %}
    <meta property="og:type" content="article"/>
    <meta property="og:url" content="{{ routes.current_url }}?utm_source=sns_share&utm_medium=open_graph"/>
    <meta property="og:image" content="{{ blog.src | default:theme_config.global.sns_link_default_image.src|public_front_asset_url }}"/>
    <meta property="og:site_name" content="{{ storeInfo.shop_name }}"/>
    <meta name="twitter:site" content="https://{{ current_domain }}">
    <meta name="twitter:card" content="summary_large_image">
    {% if blog.meta_title %}
        <meta name="twitter:title" content="{{ blog.meta_title | escape }}">
    {% else %}
        <meta name="twitter:title" content="{{ blog.title }} - {{ storeInfo.shop_name }}">
    {% endif %}
    {% if blog.meta_descript %}
        <meta name="twitter:description" content="{{ blog.meta_descript | escape }}">
    {% else %}
        <meta name="twitter:description" content="{{ blog.title }}">
    {% endif %}
    <meta property="twitter:image" content="{{ blog.src | default:theme_config.global.sns_link_default_image.src|public_front_asset_url }}"/>
    <!-- Open Graph End -->
    {% comment %}4 商品专辑详情页{% endcomment %}
{% elsif template == 'collection_detail' %}
    <!-- Open Graph -->
    {% if collection.meta_title %}
        <meta property="og:title" content="{{ collection.meta_title | escape }}"/>
    {% else %}
        <meta property="og:title" content="{{ collection.title | default : lang.collections.detail.all_products }} - {{ storeInfo.shop_name }}"/>
    {% endif %}
    {% if collection.meta_descript %}
        <meta property="og:description" content="{{ collection.meta_descript | escape }}"/>
    {% else %}
        <meta property="og:description" content="{{ collection.title | default : lang.collections.detail.all_products }}"/>
    {% endif %}
    <meta property="og:type" content="website"/>
    <meta property="og:url" content="{{ routes.current_url }}?utm_source=sns_share&utm_medium=open_graph"/>
    <meta property="og:image" content="{{ collection.src | default:theme_config.global.sns_link_default_image.src|public_front_asset_url }}"/>
    <meta property="og:site_name" content="{{ storeInfo.shop_name }}"/>
    <meta name="twitter:site" content="https://{{ current_domain }}">
    <meta name="twitter:card" content="summary_large_image">
    {% if collection.meta_title %}
        <meta name="twitter:title" content="{{ collection.meta_title | escape }}">
    {% else %}
        <meta name="twitter:title" content="{{ collection.title | default : lang.collections.detail.all_products }} - {{ storeInfo.shop_name }}">
    {% endif %}
    {% if collection.meta_descript %}
        <meta name="twitter:description" content="{{ collection.meta_descript | escape }}">
    {% else %}
        <meta name="twitter:description" content="{{ collection.title | default : lang.collections.detail.all_products }}">
    {% endif %}
    <meta name="twitter:image" content="{{ collection.src | default:theme_config.global.sns_link_default_image.src|public_front_asset_url }}"/>
    <!-- Open Graph End -->
    {% comment %}5 商品专辑列表页{% endcomment %}
{% elsif template == 'collection_list' %}
    <!-- Open Graph -->
    <meta property="og:title" content="{{ lang.collections.list.collections }} - {{ storeInfo.shop_name }}"/>
    <meta property="og:description" content=""/>
    <meta property="og:type" content="website"/>
    <meta property="og:url" content="{{ routes.current_url }}?utm_source=sns_share&utm_medium=open_graph"/>
    <meta property="og:image" content="{{ theme_config.global.sns_link_default_image.src|public_front_asset_url }}"/>
    <meta property="og:site_name" content="{{ storeInfo.shop_name }}"/>
    <meta name="twitter:site" content="https://{{ current_domain }}">
    <meta name="twitter:card" content="summary_large_image">
    <meta name="twitter:title" content="{{ lang.collections.list.collections }} - {{ storeInfo.shop_name }}">
    <meta name="twitter:description" content="">
    <meta name="twitter:image" content="{{ theme_config.global.sns_link_default_image.src|public_front_asset_url }}"/>
    <!-- Open Graph End -->
    {% comment %}6 活动专题详情页{% endcomment %}
{% elsif template == 'topic_detail' %}
    <!-- Open Graph -->
    {% if topic.meta_title %}
        <meta property="og:title" content="{{ topic.meta_title | escape }}"/>
    {% else %}
        <meta property="og:title" content="{{ topic.title }} - {{ storeInfo.shop_name }}"/>
    {% endif %}
    {% if topic.meta_descript %}
        <meta property="og:description" content="{{ topic.meta_descript | escape }}"/>
    {% else %}
        <meta property="og:description" content="{{ topic.title }}"/>
    {% endif %}
    <meta property="og:type" content="article"/>
    <meta property="og:url" content="{{ routes.current_url }}?utm_source=sns_share&utm_medium=open_graph"/>
    <meta property="og:image" content="{{ topic.src | default:theme_config.global.sns_link_default_image.src|public_front_asset_url }}"/>
    <meta property="og:site_name" content="{{ storeInfo.shop_name }}"/>
    <meta name="twitter:site" content="https://{{ current_domain }}">
    <meta name="twitter:card" content="summary_large_image">
    {% if topic.meta_title %}
        <meta name="twitter:title" content="{{ topic.meta_title | escape }}">
    {% else %}
        <meta name="twitter:title" content="{{ topic.title }} - {{ storeInfo.shop_name }}">
    {% endif %}
    {% if topic.meta_descript %}
        <meta name="twitter:description" content="{{ topic.meta_descript | escape }}">
    {% else %}
        <meta name="twitter:description" content="{{ topic.title }}">
    {% endif %}
    <meta name="twitter:image" content="{{ topic.src | default:theme_config.global.sns_link_default_image.src|public_front_asset_url }}"/>
    <!-- Open Graph End -->
        {% comment %}7 活动专题列表页{% endcomment %}
{% elsif template == 'topic_list' %}
    <!-- Open Graph -->
    <meta property="og:title" content="{{ lang.general.topic }} - {{ storeInfo.shop_name }}"/>
    <meta property="og:description" content=""/>
    <meta property="og:type" content="website"/>
    <meta property="og:url" content="{{ routes.current_url }}?utm_source=sns_share&utm_medium=open_graph"/>
    <meta property="og:image" content="{{ theme_config.global.sns_link_default_image.src|public_front_asset_url }}"/>
    <meta property="og:site_name" content="{{ storeInfo.shop_name }}"/>
    <meta name="twitter:site" content="https://{{ current_domain }}">
    <meta name="twitter:card" content="summary_large_image">
    <meta name="twitter:title" content="{{ lang.general.topic }} - {{ storeInfo.shop_name }}">
    <meta name="twitter:description" content="">
    <meta name="twitter:image" content="{{ theme_config.global.sns_link_default_image.src|public_front_asset_url }}"/>
    <!-- Open Graph End -->
    {% comment %}8 自定义页面详情{% endcomment %}
{% elsif template == 'page_detail' %}
    <!-- Open Graph -->
    {% if page.meta_title %}
        <meta property="og:title" content="{{ page.meta_title | escape }}"/>
    {% else %}
        <meta property="og:title" content="{{ page.title }} - {{ storeInfo.shop_name }}"/>
    {% endif %}
    {% if page.meta_descript %}
        <meta property="og:description" content="{{ page.meta_descript | escape }}"/>
    {% else %}
        <meta property="og:description" content="{{ page.title }}"/>
    {% endif %}
    <meta property="og:type" content="article"/>
    <meta property="og:url" content="{{ routes.current_url }}?utm_source=sns_share&utm_medium=open_graph"/>
    <meta property="og:image" content="{{ theme_config.global.sns_link_default_image.src|public_front_asset_url }}"/>
    <meta property="og:site_name" content="{{ storeInfo.shop_name }}"/>
    <meta name="twitter:site" content="https://{{ current_domain }}">
    <meta name="twitter:card" content="summary_large_image">
    {% if page.meta_title %}
        <meta name="twitter:title" content="{{ page.meta_title | escape }}">
    {% else %}
        <meta name="twitter:title" content="{{ page.title }} - {{ storeInfo.shop_name }}">
    {% endif %}
    {% if page.meta_descript %}
        <meta name="twitter:description" content="{{ page.meta_descript | escape }}">
    {% else %}
        <meta name="twitter:description" content="{{ page.title }}">
    {% endif %}
    <meta name="twitter:image" content="{{ theme_config.global.sns_link_default_image.src|public_front_asset_url }}"/>
    <!-- Open Graph End -->
    {% comment %}9 博客专辑详情页{% endcomment %}
{% elsif template == 'blog_collection_detail' %}
    <!-- Open Graph -->
    {% if news_detail.meta_title %}
        <meta property="og:title" content="{{ news_detail.meta_title | escape }}"/>
    {% else %}
        <meta property="og:title" content="{{ news_detail.title }} - {{ storeInfo.shop_name }}"/>
    {% endif %}
    {% if news_detail.meta_descript %}
        <meta property="og:description" content="{{ news_detail.meta_descript | escape }}"/>
    {% else %}
        <meta property="og:description" content="{{ news_detail.title }}"/>
    {% endif %}
    <meta property="og:type" content="website"/>
    <meta property="og:url" content="{{ routes.current_url }}?utm_source=sns_share&utm_medium=open_graph"/>
    <meta property="og:image" content="{{ news_detail.src | default:theme_config.global.sns_link_default_image.src|public_front_asset_url }}"/>
    <meta property="og:site_name" content="{{ storeInfo.shop_name }}"/>
    <meta name="twitter:site" content="https://{{ current_domain }}">
    <meta name="twitter:card" content="summary_large_image">
    {% if news_detail.meta_title %}
        <meta name="twitter:title" content="{{ news_detail.meta_title | escape }}">
    {% else %}
        <meta name="twitter:title" content="{{ news_detail.title }} - {{ storeInfo.shop_name }}">
    {% endif %}
    {% if news_detail.meta_descript %}
        <meta name="twitter:description" content="{{ news_detail.meta_descript | escape }}">
    {% else %}
        <meta name="twitter:description" content="{{ news_detail.title }}">
    {% endif %}
    <meta name="twitter:image" content="{{ news_detail.src | default:theme_config.global.sns_link_default_image.src|public_front_asset_url }}"/>
    <!-- Open Graph End -->
    {% comment %}10 博客专辑列表页{% endcomment %}
{% elsif template == 'blog_collection' %}
    <!-- Open Graph -->
    <meta property="og:title" content="{{ lang.general.news }} - {{ storeInfo.shop_name }}"/>
    <meta property="og:description" content=""/>
    <meta property="og:type" content="website"/>
    <meta property="og:url" content="{{ routes.current_url }}?utm_source=sns_share&utm_medium=open_graph"/>
    <meta property="og:image" content="{{ theme_config.global.sns_link_default_image.src|public_front_asset_url }}"/>
    <meta property="og:site_name" content="{{ storeInfo.shop_name }}"/>
    <meta name="twitter:site" content="https://{{ current_domain }}">
    <meta name="twitter:card" content="summary_large_image">
    <meta name="twitter:title" content="{{ lang.general.news }} - {{ storeInfo.shop_name }}">
    <meta name="twitter:description" content="">
    <meta name="twitter:image" content="{{ theme_config.global.sns_link_default_image.src|public_front_asset_url }}"/>
    <!-- Open Graph End -->
    {% comment %}11 博客列表页{% endcomment %}
{% elsif template == 'blog_list' %}
    <!-- Open Graph -->
    <meta property="og:title" content="{{ lang.general.blog }} - {{ storeInfo.shop_name }}"/>
    <meta property="og:description" content=""/>
    <meta property="og:type" content="website"/>
    <meta property="og:url" content="{{ routes.current_url }}?utm_source=sns_share&utm_medium=open_graph"/>
    <meta property="og:image" content="{{ theme_config.global.sns_link_default_image.src|public_front_asset_url }}"/>
    <meta property="og:site_name" content="{{ storeInfo.shop_name }}"/>
    <meta name="twitter:site" content="https://{{ current_domain }}">
    <meta name="twitter:card" content="summary_large_image">
    <meta name="twitter:title" content="{{ lang.general.blog }} - {{ storeInfo.shop_name }}">
    <meta name="twitter:description" content="">
    <meta name="twitter:image" content="{{ theme_config.global.sns_link_default_image.src|public_front_asset_url }}"/>
    <!-- Open Graph End -->
    {% comment %}12 满减活动详情页{% endcomment %}
{% elsif template == 'promotion_detail' %}
    <!-- Open Graph -->
    {% if promotion.meta_title %}
        <meta property="og:title" content="{{ promotion.meta_title | escape }}"/>
    {% else %}
        <meta property="og:title" content="{{ promotion.promotion_name }} - {{ storeInfo.shop_name }}"/>
    {% endif %}
    {% if promotion.meta_descript %}
        <meta property="og:description" content="{{ promotion.meta_descript | escape }}"/>
    {% else %}
        <meta property="og:description" content="{{ promotion.promotion_name }}"/>
    {% endif %}
    <meta property="og:type" content="article"/>
    <meta property="og:url" content="{{ routes.current_url }}?utm_source=sns_share&utm_medium=open_graph"/>
    <meta property="og:image" content="{{ promotion.src | default:theme_config.global.sns_link_default_image.src|public_front_asset_url }}"/>
    <meta property="og:site_name" content="{{ storeInfo.shop_name }}"/>
    <meta name="twitter:site" content="https://{{ current_domain }}">
    <meta name="twitter:card" content="summary_large_image">
    {% if promotion.meta_title %}
        <meta name="twitter:title" content="{{ promotion.meta_title | escape }}">
    {% else %}
        <meta name="twitter:title" content="{{ promotion.promotion_name }} - {{ storeInfo.shop_name }}">
    {% endif %}
    {% if promotion.meta_descript %}
        <meta name="twitter:description" content="{{ promotion.meta_descript | escape }}">
    {% else %}
        <meta name="twitter:description" content="{{ promotion.promotion_name }}">
    {% endif %}
    <meta name="twitter:image" content="{{ promotion.src | default:theme_config.global.sns_link_default_image.src|public_front_asset_url }}"/>
    <!-- Open Graph End -->
    {% comment %}13 满减活动列表页{% endcomment %}
{% elsif template == 'promotion_list' %}
    <!-- Open Graph -->
    <meta property="og:title" content="{{ lang.promotions.title }} - {{ storeInfo.shop_name }}"/>
    <meta property="og:description" content=""/>
    <meta property="og:type" content="website"/>
    <meta property="og:url" content="{{ routes.current_url }}?utm_source=sns_share&utm_medium=open_graph"/>
    <meta property="og:image" content="{{ theme_config.global.sns_link_default_image.src|public_front_asset_url }}"/>
    <meta property="og:site_name" content="{{ storeInfo.shop_name }}"/>
    <meta name="twitter:site" content="https://{{ current_domain }}">
    <meta name="twitter:card" content="summary_large_image">
    <meta name="twitter:title" content="{{ lang.promotions.title }} - {{ storeInfo.shop_name }}">
    <meta name="twitter:description" content="">
    <meta name="twitter:image" content="{{ theme_config.global.sns_link_default_image.src|public_front_asset_url }}"/>
    <!-- Open Graph End -->
    {% comment %}14 优惠码详情页{% endcomment %}
{% elsif template == 'coupon_detail' %}
    <!-- Open Graph -->
    {% if coupon.meta_title %}
        <meta property="og:title" content="{{ coupon.meta_title | escape }}"/>
    {% else %}
        <meta property="og:title" content="{{ coupon.coupon_name }} - {{ storeInfo.shop_name }}"/>
    {% endif %}
    {% if coupon.meta_descript %}
        <meta property="og:description" content="{{ coupon.meta_descript | escape }}"/>
    {% else %}
        <meta property="og:description" content="{{ coupon.coupon_name }}"/>
    {% endif %}
    <meta property="og:type" content="article"/>
    <meta property="og:url" content="{{ routes.current_url }}?utm_source=sns_share&utm_medium=open_graph"/>
    <meta property="og:image" content="{{ coupon.src | default:theme_config.global.sns_link_default_image.src|public_front_asset_url }}"/>
    <meta property="og:site_name" content="{{ storeInfo.shop_name }}"/>
    <meta name="twitter:site" content="https://{{ current_domain }}">
    <meta name="twitter:card" content="summary_large_image">
    {% if coupon.meta_title %}
        <meta name="twitter:title" content="{{ coupon.meta_title | escape }}">
    {% else %}
        <meta name="twitter:title" content="{{ coupon.coupon_name }} - {{ storeInfo.shop_name }}">
    {% endif %}
    {% if coupon.meta_descript %}
        <meta name="twitter:description" content="{{ coupon.meta_descript | escape }}">
    {% else %}
        <meta name="twitter:description" content="{{ coupon.coupon_name }}">
    {% endif %}
    <meta name="twitter:image" content="{{ coupon.src | default:theme_config.global.sns_link_default_image.src|public_front_asset_url }}"/>
    <!-- Open Graph End -->
    {% comment %}15 优惠码列表页{% endcomment %}
{% elsif template == 'coupon_list' %}
    <!-- Open Graph -->
    <meta property="og:title" content="{{ lang.coupons.title }} - {{ storeInfo.shop_name }}"/>
    <meta property="og:description" content=""/>
    <meta property="og:type" content="website"/>
    <meta property="og:url" content="{{ routes.current_url }}?utm_source=sns_share&utm_medium=open_graph"/>
    <meta property="og:image" content="{{ theme_config.global.sns_link_default_image.src|public_front_asset_url }}"/>
    <meta property="og:site_name" content="{{ storeInfo.shop_name }}"/>
    <meta name="twitter:site" content="https://{{ current_domain }}">
    <meta name="twitter:card" content="summary_large_image">
    <meta name="twitter:title" content="{{ lang.coupons.title }} - {{ storeInfo.shop_name }}">
    <meta name="twitter:description" content="">
    <meta name="twitter:image" content="{{ theme_config.global.sns_link_default_image.src|public_front_asset_url }}"/>
    <!-- Open Graph End -->
{% endif %}